package com.xxl.job.executor.service.impl;

import com.xxl.job.executor.mapper.TestMapper;
import com.xxl.job.executor.model.ZyzTempMpdel;
import com.xxl.job.executor.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ZYZ
 * @DateTime: 2020/3/6 16:32
 * @Description:
 */
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    TestMapper testMapper;

    @Override
    public List<ZyzTempMpdel> list() {

        return testMapper.list();
    }

    @Override
    public int updateModel(ZyzTempMpdel model) {
        testMapper.updateModel(model);
        return 1;
    }
}
